/*
  Name: DeadProxyPacketQueue.h
  Copyright:
  Author: Carl Chatfield
  Date: 18/01/08 17:30
  Description: Packet Queue which can be used by Send Queue to store packets
*/



#ifndef __DEADPROXYFRMPACKETQUEUE_h__
#define __DEADPROXYFRMPACKETQUEUE_h__

#ifdef __BORLANDC__
	#pragma hdrstop
#endif

#ifndef WX_PRECOMP
	#include <wx/wx.h>
#else
	#include <wx/wxprec.h>
#endif

#include "DeadProxyPacketBuffer.h"

WX_DECLARE_OBJARRAY(PacketBuffer, ArrayOfPacketBuffers);

class PacketQueue
{
    private:
        ArrayOfPacketBuffers * Queue;
        wxMutex * mutex;
	public:
        void AddPacket(PacketBuffer * packet);
        PacketBuffer * GetPacket();
        int GetCount();
        void Clear();
        PacketQueue();
        ~PacketQueue();
};

#endif
